package com.ygqh.baby.mapper;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgWholesaler;
import com.ygqh.baby.po.YgWholesalerExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author Ss
 */
public interface YgWholesalerMapper {
    int countByExample(YgWholesalerExample example);

    int deleteByExample(YgWholesalerExample example);

    int deleteByPrimaryKey(Long id);

    int insert(YgWholesaler record);

    int insertSelective(YgWholesaler record);

    List<YgWholesaler> selectByExample(YgWholesalerExample example);

    YgWholesaler selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") YgWholesaler record, @Param("example") YgWholesalerExample example);

    int updateByExample(@Param("record") YgWholesaler record, @Param("example") YgWholesalerExample example);

    int updateByPrimaryKeySelective(YgWholesaler record);

    int updateByPrimaryKey(YgWholesaler record);

    int countSuper(@Param("wholesalerName") String wholesalerName);

    List<YgWholesaler> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("wholesalerName") String wholesalerName);

    boolean validateNameIsUsable(@Param("wholesalerName") String wholesalerName, @Param("id") Long id);

    int updateRechargePrice(YgWholesaler wholesaler);

    int updateAmountDuePrice(YgWholesaler wholesaler);

    int updateAmountPrice(YgWholesaler wholesaler);

    List<Map<String, String>> selectPlatformList();

}



